<?php use_helper('Form') ?>
<?php if(isset($error)) echo "<div class='error'><ul>$error </ul></div>"; ?>
<form id="registrationForm" action="" method="post">
   <table class="form_holder">
      <tr><th><label class="txLabel"><?php echo __('Ime') ?></label></th><td><input name="ime" maxlength="100" class="regInput" type="text" value="<?php echo $profil->getIme() ?>" /></td></tr>
      <tr><th><label class="txLabel"><?php echo __('Prezime') ?></label></th><td><input name="prezime" maxlength="100" class="regInput" type="text" value="<?php echo $profil->getPrezime() ?>" /></td></tr>
      <tr><th><label class="txLabel"><?php echo __('Email') ?></label></th><td><input name="e_mail" maxlength="100" class="regInput required" type="text" value="<?php echo $profil->getEMail() ?>" /></td></tr>
      <tr><th><label class="txLabel"><?php echo __('Korisničko ime') ?></label></th><td><input name="username" maxlength="100" class="regInput required" type="text" value="<?php echo $profil->getUsername() ?>" /></td></tr>
      <tr><th><label class="txLabel"><?php echo __('Šifra') ?></label></th><td><input name="password" id="password" maxlength="100" class="regInput required" type="password" autocomplete="off" /></td></tr>
      <tr><th><label class="txLabel"><?php echo __('Ponovi šifru') ?></label></th><td><input name="repeat" id="repeat" maxlength="100" class="regInput required" type="password" /></td></tr>
      <tr><th><label class="txLabel"><?php echo __('Pol:') ?></label></th>
        <td>
         <select name="pol" class="required">
            <option value=""><?php echo __('Izaberi pol') ?></option>
            <option value="m" <?php echo (ProfilPeer::$pol['m'] === $profil->getPol()) ? 'selected="selected"' : '' ?>>&nbsp;&nbsp;&nbsp;<?php echo __('Muško') ?></option>
            <option value="z" <?php echo (ProfilPeer::$pol['z'] === $profil->getPol()) ? 'selected="selected"' : '' ?>>&nbsp;&nbsp;&nbsp;<?php echo __('Žensko') ?></option>
         </select>
         </td>
      </tr>

      <tr><th><label class="txLabel">&nbsp;</label></th>
        <td><a id="dugme" onclick="document.forms[0].submit(); return false;" href="javascript: void(0)" class="button"><span>Promeni</span></a></td>
      </tr>
   </table>
</form>